package com.example.linkedlist;

public class LinearNode1<T> {
    private T element;
    private LinearNode1<T> next;

    public LinearNode1(T element) {
        this.element = element;
        next=null;
    }

    public T getElement() {
        return element;
    }

    public void setElement(T element) {
        this.element = element;
    }

    public LinearNode1<T> getNext() {
        return next;
    }

    public void setNext(LinearNode1<T> next) {
        this.next = next;
    }
}